A Compiler for the Tcl Language
نویسنده
چکیده
Tcl is a highly dynamic language that is especially challenging to execute eeciently. The dual-language nature of the system enforced by the C callback mechanism makes traditional compilation and optimization un-realistic. In addition, the lack of formal data types (and therefore type checking) places severe limits on the ability to provide for eecient data storage at compile time. In this paper, we discuss the many issues involved with compiling Tcl, and present a design for such a system, including the mechanism for embedding a Tcl script into the compiler itself in order to provide user extensibility. The current implementation is presented along with results showing approximately ten times the performance of the existing Tcl interpreter.
منابع مشابه
Interpreted C++, Object Oriented Tcl, What next?
Tcl[1] is an interpreted high level language suitable for scripts, small scale systems, prototypes and embedding in larger applications. C++ is a powerful compiled language that provides support for object oriented programming and is suitable for building large complex systems. But what if you could move from C++ to Tcl and back again with the ease of an object reference and a dynamically bound...
متن کاملAn X11 Toolkit Based on the Tcl Language
This paper describes a new toolkit for X11 called Tk. The overall functions provided by Tk are similar to those of the standard toolkit Xt. However, Tk is implemented using Tcl, a lightweight interpretive command language. This means that Tk’s functions are available not just from C code compiled into the application but also via Tcl commands issued dynamically while the application runs. Tcl c...
متن کاملA Typing System for an Optimizing Multiple-Backend Tcl Compiler
This paper describes the typing system used by the ICE 2.0 Tcl compiler[Rouse]. The typing system tracks the usage of variables and allows the compiler to reduce the number of instructions required to carry out Tcl instructions. It will also allow future improvements in code emission by making it possible to carry out standard compiler analyses and optimizations[Aho].
متن کاملUsing Tk as Remote GUI Frontend for 4GL-database Applications
This is a short report about our experience using Tk as GUI frontend. We wrote a compiler called F4GL , source compatible to the INFORMIX 4GL database language. (4GL means 4th generation language) This language was originally designed to create UNIX database applications with text-terminal output. 4GL programs compiled with F4GL generate Tcl-commands as graphic output (the text output is also s...
متن کاملAn Extensible Compiler for Creating Scriptable Scientific Software
Scripting languages such as Python and Tcl have become a powerful tool for the construction of exible scienti c software because they provide scientists with an interpreted problem solving environment and they form a modular framework for controlling software components written in C,C++, and Fortran. However, a common problem faced by the developers of a scripted scienti c application is that o...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
دوره شماره
صفحات -
تاریخ انتشار 1993